#ifndef __WIFI_H_
#define __WIFI_H_

#include "stm32f10x.h"
#include "usart.h"
#include "delay.h"
#include "string.h"

typedef struct Wifi_t{

	uint8_t Connect_ID;
	uint8_t Wait_OK_Flag;
	uint8_t	Wait_SendData_flag;
	
	void (*Init)(const char* ssid,const char* password);
	
	void (*TcpClient)(const char *ip,const uint16_t port);
	void (*SendData)(char* buf);
	
	void (*OpenTrans_Client)(const char *ip,const uint16_t port);
	void (*Trans_SendData)(char* buf);
}Wifi_t;

extern Wifi_t WiFi;

#endif
